import http from '@/utils/request'

//获取场地预约信息
export async function getFieldBookApi(parm){
  return await http.get("/fieldBook",parm)
}

//获取场地预约全部信息
export async function getAllFieldBookApi(parm){
  return await http.get("/fieldBook/list",parm)
}

//新增预约
export async function addBookFieldApi(parm){
  return await http.post("/fieldBook",parm)
}

//修改预约状态
export async function editBookFieldStatusApi(parm){
  return await http.put("/fieldBook",parm)
}

//批量删除预约(物理删除)
export async function deleteFieldBookApi(parm){
  return await http.delete("/fieldBook",parm)
}
